task main()
{
	bMotorFlippedMode[port2] = true; 	//Port 2 Motor Direction Flipped
	bMotorFlippedMode[port4] = true;


	while (1 == 1)									  //Creates and infinite loop
	{
		motor[port2] = vexRT(Ch2);		  //The right motor is set to equal the value transmitted by Ch2 (y-axis of the right joystick)
		motor[port3] = vexRT(Ch3);//The left motor is set to equal the value transmitted by Ch3 (y-axis of the left joystick)
	  if(vexRT[Btn7D] == 1)
	  {
	    motor(port4) = -127;
	  }
	  else
	  {
	    motor(port4) = 0;
	  }
	  if(vexRT[Btn7U] == 1)
	  {
	    motor(port4) = 127;
	  }
	  else
	  {
	    motor(port4) = 0;
	  }
	   if(vexRT[Btn7D] == 1)
	  {
	    motor(port5) = 127;
	  }
	  else
	  {
	    motor(port5) = 0;
	  }
	  if(vexRT[Btn7U] == 1)
	  {
	    motor(port5) = 127;
	  }
	  else
	  {
	    motor(port5) = 0;
	  }

	  if(vexRT[Btn8U] == 1)
	  {
	    motor[port6] = 127;
	  }
	  if(vexRT[Btn8D] == 1)
	  {
	    motor[port6] = -127;
	  }
	  if(vexRT[Btn8U] == 1)
	  {
	    motor[port7] = 127;
	  }
	  else
	  {
	    motor(port7) = 0;
	  }
	  if(vexRT[Btn8D] == 1)
	  {
	    motor[port7] = -127;
	  }
	  else
	  {
	    motor[port7] = 0;
	  }


	}
}
